<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>


<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>LOGIN</title>
    </head>
    <body>
   
    <f:view>        
        <h:form>
            <div align="center">
                <h1>LOGIN</h1>
                <p></p>

                <table>
                    <tr>
                        <th>usuario</th>
                        <td>
                            <h:inputText value="#{LoginBean.usuario}" />
                        </td>
                    </tr>                
                    <tr>
                        <th>passw</th>
                        <td>
                            <h:inputSecret value="#{LoginBean.passw}" />
                        </td>
                    </tr>
                </table>
                <p>
                    <h:commandButton action="#{LoginBean.submit}" value="login" />
                </p>
                <p>
                    <h:outputText value="#{LoginBean.mensajeError}" style="color:red"/><br>
                </p>
            </div>
        </h:form>
    </f:view>
    
    
    </body>
</html>
